home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer Plus 2007
/
Programmer-Plus-2007.iso
/
Programming
/
High Level Languages
/
Turbo C v3.0
/
Tc3setup.exe
/
EXAMPLES
/
EX8.CPP
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-02-18
|
302 b
|
19 lines
// Borland C++ - (C) Copyright 1991 by Borland International
// ex8.cpp: Using the Stack Class
// from Hands-on C++
#include "stack.h"
main()
{
Stack s(5);
int i = 0;
// Insert the numbers 1 through 5
while (s.push(i+1) == 0)
++i;
s.print();
return 0;
}